#ifndef MODBUSWIG_H
#define MODBUSWIG_H

#include <QWidget>
#include <QPainter>
#include <QPixmap>
#include <QWidget>
#include <QDebug>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QByteArray>
#include <QDate>
#include <QPushButton>
#include "mqtthandler.h"
#include <QDebug>
#include "globalval.h"
#include "mqtt/qmqtt.h"
#include <QDialog>
#include <QTcpSocket>
#include <QTextStream>  // 文本流类
#include <QMessageBox>
#include<QDebug>
#include<strings.h>
#include<string.h>
#include <QDateTime>
namespace Ui {
class ModbusWig;
}

class ModbusWig : public QWidget
{
    Q_OBJECT

public:
    explicit ModbusWig(QWidget *parent = 0);
    ~ModbusWig();
    GlobalVal glo;
    QButtonGroup *group;
private slots:
    void toggledSlot(int);
    void dataUpSlot(QByteArray message);
private:
    Ui::ModbusWig *ui;
      void paintEvent(QPaintEvent * event);
};

#endif // MODBUSWIG_H
